home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Softwarová Záchrana 3
/
Softwarova-zachrana-3.bin
/
Xteq X-Setup
/
xqdcXSP-Setup-EN.exe
/
{app}
/
plugins
/
XQ Startmenu Clear Logoff.xpl
< prev
next >
Wrap
Text File
|
2002-01-01
|
2KB
|
58 lines
"FILE"="Xteq Systems X-Setup Plugin 5.0"
"TYPE"="6"
"COUNT"="1"
"UIPATH"="Appearance\Start menu\Common"
"NAME"="Clear Items on logoff"
"VERSION"="1.31"
"LANGUAGE"="VBScript"
"TEXT 1"="Clear all items on logoff"
"DESCRIPTION 1"="If this option is activated, Windows will clear all "Recent" entries that are available in the start menu, as soon as you logoff."
"AUTHOR"="Xteq Systems"
"CONTACTURL"="http://www.xteq.com"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"=" "
"COMMENT 2"=" "
"COMMENT 3"="Thanks to Jon-Roar Selenius (jseleniu@online.no) for spotting the "Recent Documents always empty" bug."
'Declaration of some constants
sP="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\"
'Called when the Plugin is started
SUB Plugin_Initialize
i=RegReadValue(sp&"ClearRecentDocsOnExit") 'Str!
if IsEmpty(i)=false then
SetUIElement 1,true
end if
END SUB
'Called when the Plugin should validate the Data the user has entered
SUB Plugin_CheckData(ElementIndex)
END SUB
'Called when the Plugin should apply the changes
SUB Plugin_Apply(ElementIndex,ElementSubIndex)
s=sp & "ClearRecentDocsOnExit"
b=GetUIElement(1)
if b=true then
Call RegWriteValue(s,"1",1)
else
'Deactivating it by DELETING the value !
i=RegReadValue(s)
if IsEmpty(i)=false then
Call RegDeleteValue(s)
end if
end if
Call Restart
END SUB
'Called when the Plugin is about to be removed from memory
SUB Plugin_Terminate
END SUB